home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Modules / BackSpaceModules / Source / BattleView / SpaceThing.h < prev    next >
Text File  |  1994-05-04  |  1KB  |  50 lines

  1. /* SpaceThing.h -- interface for SpaceThing objects
  2.    Copyright (C) 1992, 1993 David A. Strout
  3.  
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2, or (at your option)
  7.    any later version.
  8.  
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. /* Written by David Strout <dstrout@isi.edu>. */
  19.  
  20.  
  21.  
  22. #import <appkit/appkit.h>
  23. #import <objc/Object.h>
  24. #import "Misc.h"
  25.  
  26. @interface SpaceThing:Object
  27. {
  28.   NXPoint location, oldLoc;
  29.   int heading; 
  30.   int speed; /* In base co-ords / frame */
  31.   int status;
  32.   float maxX;
  33.   float maxY;
  34. }
  35.  
  36. - findImageNamed:(const char *)name;
  37. - init;
  38. - setViewXSize:(float)x YSize:(float)y;
  39. - drawSelf;
  40. - newVector;
  41.  
  42. - checkMove;
  43. - oneStep;
  44.  
  45. - (float) xLoc;
  46. - (float) yLoc;
  47.  
  48. @end
  49.  
  50.